/**
 * JAVACC DEMO 1.0
 */
package com.apache.portal.common.enums;

import com.apache.tools.StrUtil;

/**
 * description:  农E通客户端方法标识枚举类
 * @author Hou Dayu 创建时间：2016-7-08  
 */
public enum NetMethodEnum {
	proList("proList"), proInfo("proInfo"), proEntity("proEntity"), proAdd("proAdd"), proSave("proSave"), proEdit(
			"proEdit"), proStartFlow("proStartFlow"), dealList("dealList"), dealSave("dealSave"), sellerList(
			"sellerList"), baoMing("baoMing"), regBrandPro("regBrandPro"), pickBrandPro("pickBrandPro"), applyList(
			"applyList"), applyInfo("applyInfo"), transUserSave("userSave"), transUserEdit("userEdit"), transUserInfo(
			"userInfo"), applyEdit("applyEdit"), sendInvoice("sendInvoice"), bailOut("bailOut"), billIn("billIn"), billOut(
			"billOut"), settleBillList("settleBillList"), settleBillEntity("settleBillEntity"), billPay("billPay"),billPayBelow("billPayBelow"),settleFlowList(
			"settleFlowList"), settleFlowEntity("settleFlowEntity"), pubEdit("pubEdit"), auditSave("auditSave"), auditList(
			"auditList"), proListAll("proListAll"), dymicSql("dymicSql"), testDymicSql("testDymicSql"), saveCred(
			"saveCred"), delTransBill("delCred"), transBillInfo("transBillInfo"), transBillList("transBillList"), editBillStatus(
			"editBillStatus"), dealInfo("dealInfo"), billCashier("billCashier"), editBillInOut("editBillInOut"), pushBid(
			"pushBid"), cateInfo("cateInfo"),

	Deault("0000");

	// 普通方法  
	public static NetMethodEnum getName(String name) {
		if (StrUtil.isNull(name))
			return Deault;
		for (NetMethodEnum c : NetMethodEnum.values()) {
			if (c.getName().equals(name)) {
				return c;
			}
		}
		return Deault;
	}

	private String name;

	private NetMethodEnum(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
}
